package cn.green.core.components.dialect;

import com.alibaba.fastjson.JSONObject;
import cn.green.core.components.entity.DatabaseSql;
import cn.green.core.model.QTable;

/**
 * @author wang.yishu
 * @version 1.0
 * @className DatabaseDmlDialect
 * @description 数据库操纵语言 dml
 * @date 2024/11/19 11:17
 */
public interface DatabaseDmlDialect {

    DatabaseSql insertSql(QTable table, JSONObject record);

    DatabaseSql updateSql(QTable table, JSONObject record, String... conditions);

    DatabaseSql deleteSql(QTable table, JSONObject record, String... conditions);
}
